﻿--[[
   @brief    login_tips 新版登录后浮层广告
   @author   maxyao, charleycao
   @version  1.0
   @date     2017-03-23
--]]

login_popup_tips_desc =
{
    module_name = 'login_popup_tips_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.tips_mgr.ON_MSGTIPS_GAME_RUNNING,
                    callback = "login_popup_tips_control.get_game_runing_state"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_GAME_END,
                    callback = "login_popup_tips_control.game_ended_show_login_popup_tips"
                },
                {
                    id = ierd_tgp.game_mgr.GAME_MGR_PROCESS_DELETED,
                    callback = "login_popup_tips_control.game_ended_show_login_popup_tips"
                }
            },
            lua_event = 
            {
                {
                     id = banner_event.FOCUS_BANNER_ITEM,
                     callback = "login_popup_tips_control.on_focus_banner_item"
                 },
            },
            reg_service = 
            {
                {
                    id = 'i_service_get_login_popup_tips_data',
                    callback = 'login_popup_tips_control.get_login_popup_tips_data'
                },
                {
                    id = 'i_service_report_ad_system',
                    callback = 'login_popup_tips_control.report_ad_system'
                },
            },
             listen_broadcast = 
             {
                 {
                     id = "i_broadcast_show_login_popup_tips",
                     callback = "login_popup_tips_control.on_brc_show_login_popup_tips"
                 },
                 {
                     id = "Brdcst_Exit_TGP",
                     callback = "login_popup_tips_control.close_tips"
                 },
                 {
                     id = "i_broadcast_finsh_wegame_user_guide",
                     callback = "login_popup_tips_control.on_finsh_wegame_user_guide"
                 },
             },
            lua_file = "login_popup_tips\\control.lua"
        },
    }
};
desc_mgr.add(login_popup_tips_desc);